<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<link rel="stylesheet" type="text/css" href="<?php echo $this->_baseUrl;?>/public/css/reset.css"/>
<link rel="stylesheet" type="text/css" href="<?php echo $this->_baseUrl;?>/public/css/main.css"/>
<link rel="stylesheet" type="text/css" href="<?php echo $this->_baseUrl;?>/public/css/layout.css"/>
<script language="javascript" src="<?php echo $this->_baseUrl;?>/public/js/jquery-1.6.2.min.js"></script>
<script language="javascript" src="<?php echo $this->_baseUrl;?>/public/js/curvycorners.js"></script>
<script language="javascript" src="<?php echo $this->_baseUrl;?>/public/js/custom-form-elements.js"></script>
<title><?php echo $this->title;?></title>
<link rel="shortcut icon" href="<?php echo $this->_baseUrl;?>/public/images/web/favicon.ico" type="image/x-icon" />
</head>

<body>
 <div id="wrapper">
   <div id="header">
    	<div id ="logo">
        	<a href="<?php echo $this->_baseUrl;?>"><img src="<?php echo $this->_baseUrl;?>/public/images/web/bkloud logo2.png" width="142" height="94"  /></a>
   			<a href="http://hpcc.hut.edu.vn"><img src="<?php echo $this->_baseUrl;?>/public/images/web/HPCC-Logo-new.png" width="160" height="94" /></a>
        </div>
        
        <?php 
        if(isset($_SESSION['user_id']))
            {
             $this->loadWidget('top_menu_logged_in');
             $this->loadWidget('menu_logged_in');   
            }
        else
        {
            $this->loadWidget('top_menu');
            $this->loadWidget('menu');
        }
            
        ?>
   </div>
   
   <script>
   $(document).ready(function(){ 
       $('#main-content').css('min-height',function(){
          var main_height = $(window).height() - 285;
        return main_height+'px';
       });   
   });
   </script>
   <div id="main-content">        
        <?php $this->loadContent();?>
   </div>
 </div>
 <div id="footer">
    <?php 
        if(isset($_SESSION['user_id']))
            $this->loadWidget('bottom_menu_logged_in');
        else
            $this->loadWidget('bottom_menu');
    ?>
    <div id="copyright">
    	Copyright © 2011 High Performance Computing Center.<br/>
		Hanoi University of Science and Technology.
    </div>
 </div>
</body>
</html>
